package de.gameduell.framework.game.card {
	import flash.geom.Point;
	
	import de.gameduell.framework.game.card.CardStack;
	import de.gameduell.framework.game.card.display.Fan;
	import de.gameduell.framework.game.card.MultipleFaceCard;	

	/**
	 * @author dkum
	 */
	public class MultipleFaceCardStack extends CardStack {

		public function MultipleFaceCardStack(pos:Point, rotate:int = 0, scale:Number = 1) {
			super(pos, rotate, scale);
		}
		
		public function changeFaces(newPrefix:String,aScale:Number,fanOffset:int = -1):void{
			for (var i:int = 0;i < cards.length;i++) {
				MultipleFaceCard(cards[i]).changeFace(newPrefix);
			}
			if(fanOffset > 0){
				Fan(displayMode).offset = fanOffset;
			}
			scaleFactor = aScale;
		}
		
		public function get faceDown():Boolean {
			return _faceDown;
		}
		
	}
}
